<!DOCTYPE html>
<html>
	<head>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
	</head>
	<body>
		<script>
		  var query = [{'id': null, 'name': null, 'type': '/astronomy/planet'}];
		  var service_url = 'https://www.googleapis.com/freebase/v1/mqlread';
		  $.getJSON(service_url + '?callback=?', {query:JSON.stringify(query)}, function(response) {
			$.each(response.result, function(i,planet){
			  $('<div>',{text:planet.name}).appendTo(document.body);
			});
		  });
		</script>
	</body>
</html>
